from base.abs import AbstractTestBase
from api.simple_api import BaiduSearch
from utils.http_visit import ApiResponse


class TestBaiduSearch(AbstractTestBase):
    def set_case_info(self):
        pass

    baidu_search_api: BaiduSearch = None

    @classmethod
    def setup_class(cls):
        cls.baidu_search_api = BaiduSearch()

    def test_search(self):
        resp: ApiResponse = self.baidu_search_api.search()
        assert resp.response_code == 200

    @classmethod
    def teardown_class(cls):
        pass
